<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class EacooVillage extends Model
{
    //
    protected $table = 'eacoo_village';

    // 判断乡村是否存在
    public static function villageCheck($code){
        $res = self::where('code',$code) -> first();
        return $res ? true : false;
    }

}
